package fr.ifsic.film.client.ui;

import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Label;

import fr.ifsic.film.client.FilmProject;

public class DetailsPersonne extends DetailsType {

	public Label labelShowId;
	public Label labelShowNom;
	public Label labelShowPrenom;
	public Label labelShowSexe;
	public Label labelShowNbFilm;

	public DetailsPersonne() {
		super("Details d'une personne");
		Grid grid = new Grid(4, 2);
		verticalPanel.add(grid);

		Label labelId = new Label("Id");
		grid.setWidget(0, 0, labelId);

		labelShowId = new Label();
		grid.setWidget(0, 1, labelShowId);

		Label labelNom = new Label("Nom");
		grid.setWidget(1, 0, labelNom);

		labelShowNom = new Label();
		grid.setWidget(1, 1, labelShowNom);

		Label labelPrenom = new Label("Prenom");
		grid.setWidget(2, 0, labelPrenom);

		labelShowPrenom = new Label();
		grid.setWidget(2, 1, labelShowPrenom);

		Label labelSexe = new Label("Sexe");
		grid.setWidget(3, 0, labelSexe);

		labelShowSexe = new Label();
		grid.setWidget(3, 1, labelShowSexe);

		verticalPanel.add(btnNewButton);
		verticalPanel.setCellHorizontalAlignment(btnNewButton,
				HasHorizontalAlignment.ALIGN_CENTER);
	}

	@Override
	void retour() {
		FilmProject.changePage(FilmProject.lp);
	}

}
